#include <iostream>
using namespace std;  

template <class T1,class T2>
T1 add1(T1 lhs,T2 rhs){
    cout << lhs <<" : "<< rhs <<endl;
    return lhs + rhs;
}
//指定类型模板参数
template <class T01,class T02>
T01 add2(T01 lhs,T02 rhs){

     return lhs + rhs;
}
int main(int argc, char *argv[]){  
    int a = 3;
    float b = 3.00;
    cout << add1(a, b)<<endl;
    cout <<  add2<float, int>(a, b) <<endl;
    return 0;  
}
